/* 
 * 
 * Created on 14 Oct 2011 by simonk
 * 
 * Copyright: Multicom Products Ltd. 2011 Bristol, England
 */
package objects.data;

/**
 *
 * @author simonk
 */
import objects.ObjectCodes;
import utils.Utils;

import com.google.gson.Gson;

public class LoginData implements ObjectCodes{
	public String user;
	public String pass;
	
	public LoginData(){}
	
	public LoginData(String user, String pass)
	{
		this.user = user;
		this.pass = pass;
	}
	
	public String toString()
	{
		return CLI_LOGIN+"|"+ new Gson().toJson(this);
	}
	
	public static LoginData fromJSon(String json)
	{
		return new Gson().fromJson(json,LoginData.class);
	}
}